import request from "@/utils/request"

// 分页查询
export function dataHandleList(data, skip, limit) {
  return request({
    url: `/dataManage/dataHandle/page/${skip}/${limit}`,
    method: "post",
    data
  })
}

// 查询详情
export function dataHandleInfo(id) {
  return request({
    url: `/dataManage/dataHandle/${id}`,
    method: "get",
  })
}

// 保存
export function dataHandleSave(data) {
  return request({
    url: `/dataManage/dataHandle/save`,
    method: "post",
    data
  })
}

// 删除
export function dataHandleDel(id) {
  return request({
    url: `/dataManage/dataHandle/${id}`,
    method: "delete",
  })
}

// 处理
export function dataHandleStart(id) {
  return request({
    url: `/dataManage/dataHandle/handle/${id}`,
    method: "post",
  })
}

// 值域查询
export function findDomain(key) {
  return request({
    url: `/dataManage/dataHandle/domain/${key}`,
    method: "get",
  })
}
